import { createRouter, createWebHistory } from 'vue-router';
import Ziyuan from '../pages/ziyuan/ziyuan.vue';
import Shangcheng from '../pages/shangcheng/shangcheng.vue';
import Ditu from '../pages/ditu/ditu.vue';

const routes = [
  {
    path: '/',
    name: 'ziyuan',
    component: Ziyuan,
  },
  {
    path: '/shangcheng',
    name: 'shangcheng',
    component: Shangcheng,
  },
  {
    path: '/ditu',
    name: 'ditu',
    component: Ditu,
  },
];

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
});

export default router;